package com.vlada.studzad.data;

import java.util.ArrayList;
import java.util.List;

import com.vlada.studzad.model.Employer;

public class MockDataEmployerSource{

	private List<Employer> employers = new ArrayList<Employer>();

	

	public MockDataEmployerSource() {
		addEmployer(new Employer("Hope", "Tamara", "Milanovic", "tam", "2", "Voice"));
		addEmployer(new Employer("Love", "Darija", "Zaric", "dar", "2", "Guitar"));
	}	


	public List<Employer> getAllEmployers() {
		return employers;
	}

	public Employer getEmployerByID(String ID) {
		for (Employer s : employers) {
			if(s.getFirmName().equals(ID)){
				return s;
			}
		}
		return null;
	}

	public void addEmployer(Employer em) {
		employers.add(em);		
	}
}
